package com.example.demo.threadDemo.aCreateThreadName;

/**
 * @Description MySleepThread01
 * @Author songchuanlong
 * @Date 2025-04-14
 */
public class MySleepThread01 extends Thread{
    public MySleepThread01(String name){
        super(name);
    }
    @Override
    public void run() {
        Thread t = Thread.currentThread();
        for (int i = 1; i <=3; i++) {
            System.out.println(t.getName()+":"+i);
        }
    }
}
